<script type="text/javascript" src="/js/cartoon.js"></script>
<h2>用户管理 &gt; 搜索</h2>
<? include('part_searchform.phtml');?>
<?// echo $this->genPages($this->ret['data']['INFO']);?>
<br>
<table class="list" cellpadding="0" cellspacing="0">
	<thead align="center">
		<td nowrap></td>
		<td nowrap>id</td>
		<td nowrap>用户名</td>
		<td nowrap>邮箱</td>
		<td nowrap>性别</td>
		<td nowrap>来自</td>
		<td nowrap>注册时间</td>
		<td nowrap>最后登录时间</td>	
		<td nowrap>状态</td>	
	</thead>
	<?if($this->ret['data']):?>
	<? foreach($this->ret['data'] as $row):?>
	<tr align="left">
		<td nowrap><input type="checkbox"  name="uid" value="<?=$row['uid']?>" /></td>
		<td nowrap><?= $row['uid']?></td>
		<td nowrap align="left" style="over-flow: hide" width="100px">
		<?= $row['username']?></td>
		<td><?= $row['email']?></td>
		<td nowrap align='center'><?= ($row['sex']==1)?'男':($row['sex']=='2'?'女':'未知')?></td>
		<td nowrap><?= $row['r_province'].'-'.$row['r_city'].'-'.$row['r_district']?></td>
		<td nowrap align="center"><?= date('Y-m-d H:i:s',$row['reg_time'])?></td>
		<td nowrap align="right"><?=  date('Y-m-d H:i:s',$row['last_login'])?>小时</td>
		<td nowrap align="center"><?= ($row['flag']==0)?'正常':($row['flag']=='1'?'作者':'管理员')?></td>
	</tr>
	<? endforeach;?>
	<?else:?>
	<tr>
	<td colspan="7">暂无数据</td>
	</tr>
	<?endif;?>
	<thead >
		<td colspan="9">
		<input type="checkbox" id="checkall" onclick="Cartoon.chkall('checkall')" >
		设置为：<select name="member_flag" id="member_flag">
		<option  value="0">普通用户</option>
		<option  value="1">漫画作者</option>
		<option value="2">管理员</option>
		<option  value="-1">屏蔽用户</option>
		</select>
		<input type="button"  value="确定" onclick="Cartoon.setUser();" />
		&nbsp; &nbsp; &nbsp; &nbsp;
		<input type="button" value="删除所选" onclick="Cartoon.removeUser();" />
		</td>
	</thead>
</table>

<?=$this->ret['pages']?>